package org.example.autofilearchiver.Web.Controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.example.autofilearchiver.Web.ServiceImpl.DocxAndPdfProcessServiceImpl;
import org.example.autofilearchiver.tool.StaticClass.DOCX.DocxStatic;
import org.example.autofilearchiver.toolclass.DOCX.DocxFileTemplate;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/docxAndPdfProcess")
@Api(tags = "docx文件和pdf文件处理相关接口")
public class DocxAndPdfController {
    @PostMapping("/startProcess")
    @ApiOperation(value = "开始处理接口", notes = "开始处理文件")
    public String startProcess() throws Exception {
       DocxAndPdfProcessServiceImpl.processData();
       return "处理完毕";
    }
    @PostMapping("/startProcess2")
    @ApiOperation(value = "开始处理接口", notes = "开始处理文件")
    public String startProcess2() throws Exception {
        DocxAndPdfProcessServiceImpl.processData2();
        return "处理完毕";
    }

}
